<template>
  <DeviceBorrowEdit
    v-if="dialogFormVisible"
    :id.sync="editId"
    ref="DeviceBorrowEdit"
    :dialog-form-edit-visible.sync="dialogFormVisible"
    :edit-state="editState"
  />
</template>

<script>
const DeviceManage = import("@/ModuleDeviceManage");
export default {
  name: "AuditDeviceBorrowDetail",
  components: { DeviceBorrowEdit: DeviceManage.DeviceBorrowAddDialog },
  props: {
    dialogFormVisible: {
      type: Boolean,
      default: false,
    },
    editId: {
      type: String,
      default: "0",
    },
  },
  data() {
    return {
      editState: true
    };
  },
  watch: {
    dialogFormVisible: function(v) {
      if (v === false) {
        this.$emit("getList")
        this.$emit("update:dialogFormVisible", false)
      }
    }
  },
  created() {
  },
  methods: {
    // 弹窗使用不允许删除
    getList() { },
  },
};
</script>
<style scoped>
</style>
